import request from '@/utils/request'
// 1.策略管理表格数据
export const getPolicySearch = (params) => {
  return request({
    url: '/vm-service/policy/search',
    params
  })
}
// 2.策略管理的新增
export const postPolicy = (data) => {
  return request({
    url: '/vm-service/policy',
    method: 'post',
    data
  })
}
// 3.策略管理修改
export const putPolicy = (data) => {
  return request({
    url: `/vm-service/policy/${data.policyId}`,
    method: 'put',
    data
  })
}
// 4.查看详情-策略详情表格数据
export const getPolicyVmlist = (params) => {
  return request({
    url: `/vm-service/policy/vmList/${params.innerCode}`,
    params
  })
}
